package com.gitee.sys.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.gitee.mybase.top.entity.SysResource;
import com.gitee.sys.pojo.Menu;
import com.gitee.sys.pojo.MenuBar;
import com.gitee.sys.pojo.MenuItem;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author chengkaimao
 * @since 2018-11-17
 */
public interface ISysResourceService extends IService<SysResource> {

    List<MenuBar> getMenuBar(String appCode);

    List<Menu> getMenu(String menuBarCode);

    List<MenuItem> getMenuItem(String menuCode);

    List<MenuItem> getMenuItemByBar(String menuBarCode);

    int saveResource(SysResource sysResource);

    int updateResource(SysResource sysResource);

    int delResource(String resourceCode);


}
